import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';

import {Observable} from "rxjs/Observable";
import 'rxjs/add/operator/map';
import {StaffMod} from "../../../model/pages/add-staff/addNewStaff/addNewStaff.model";


@Injectable()
export class AddNewStaffProvider{

    constructor(public http: HttpClient) {
    }

    // 新增客户请求
    addNewStaff(customerData: StaffMod):Observable<any>{
        // return this.http.post(`/recruit/target/v1 `,customerData,{responseType:"text"});
        return this.http.post(`/recruit/target/v1`,customerData,{responseType:"text"});

    }
}
